﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web4Comment.Service
{
    public class ReadTimeService : TimeService
    {
        public static long logStartTime(int userid, DateTime start_time, int newsId)
        {
            return logStartTimeBase(userid, start_time, 2, newsId);
        }

        public static bool logEndTime(long timeid, DateTime end_time)
        {
            return logEndTimeBase(timeid, end_time);
        }

        public static TimeSpan calculateTime(int userid, int newsId)
        {
            return calculateTimeBase(userid, 2, newsId);
        }

        public static TimeSpan calculateTimeTotal(int userid)
        {
            return calculateTimeTotalBase(userid, 12);
        }
    }

}
